package com.kukudexin.time.mayikt.method;

import com.kukudexin.time.mayikt.service.MessageInterface;

/**
 * @author: 酷酷的鑫
 * @Date: 2022/1/12 16:31
 * @description:
 */
public class StaticMethodImport {
    public static void main(String[] args) {
        StaticMethodImport staticMethodImport = new StaticMethodImport();
        MessageInterface messageInterface = () -> {
            staticMethodImport.objGet();
        };
        messageInterface.get();
        MessageInterface messageInterface2 = StaticMethodImport::staticGet;
        messageInterface2.get();

        MessageInterface messageInterface3 = staticMethodImport::objGet;
        messageInterface3.get();
    }

    public static void staticGet() {
        System.out.println("staticGet");
    }

    public void objGet() {
        System.out.println("objGet");
    }
}
